package com.example.eureka.service.Impl;

import org.springframework.stereotype.Service;

import com.example.eureka.domain.Food;
import com.example.eureka.service.OrderService;

@Service
public class OrderServiceImpl implements OrderService {

	/**
	 * 根据订购id来获取当前订购食品的信息
	 */
	public Food queryFoodInfoById(int id) {
		Food food = null;
		if (id == 1) {
			food = new Food(1, "康师傅红烧牛肉面", 6);
		} else if (id == 2) {
			food = new Food(2, "达利园薯片", 12);
		}
		return food;
	}
}
